<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<body>
	<script type="text/javascript">
		$(function() {
			var json = ${json};
			$("#org_tree").tree({
				fit:true,
				parentField:"pid",
				data:json,
				animate:true,
				onClick:function(node) {
					$("#org_datagrid").datagrid("load", {pid:node.id});
				}
			});
		});
	</script>
	<ul id="org_tree"></ul>
</body>